import type { ShopStatusEnum } from '@/shared'
import { DoGet } from '@/utils/http'
import useSWR from 'swrv'

export const useShopStatus = () => {
  return useSWR('/shop/status', uri => DoGet<ShopStatusEnum>(uri), {
    revalidateOnFocus: false
  })
}
